package com.eliza.music.view.music

import androidx.compose.material3.Text
import androidx.compose.runtime.Composable
import androidx.compose.runtime.collectAsState
import androidx.compose.ui.Modifier
import androidx.hilt.navigation.compose.hiltViewModel
import com.eliza.music.model.vm.PlayingMusicVm
import com.eliza.music.model.vm.PlayingSettingVm
import com.eliza.music.view.music.find.FindPageX
import com.eliza.music.view.music.mine.MinePageX
import com.eliza.music.view.music.play.PlayingX
import com.eliza.music.view.music.recommend.Recommend


object MusicScreen {

    @Composable
    fun RecommendScreen(modifier: Modifier = Modifier) {
        Recommend.Route()
    }

    @Composable
    fun FindScreen(modifier: Modifier = Modifier) {
        FindPageX.Route()
    }

    @Composable
    fun MineScreen(modifier: Modifier = Modifier) {
        MinePageX.Route()
    }

    @Composable
    fun DynamicScreen(
        modifier: Modifier = Modifier,
        vm: PlayingMusicVm = hiltViewModel(),
        settingVm: PlayingSettingVm = hiltViewModel()
    ) {
        val collectAsState = settingVm.setting.collectAsState()
        Text(text = "${collectAsState.value}")
        PlayingX.PlayBottomItem(setting = collectAsState, vm = vm)
    }
}